﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="storesearchform_parameter.aspx.cs" Inherits="YXShop.Web.admin.templates.label.storesearchform_parameter" %>

<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>无标题页</title>
    <link href="../../style/admin.css" rel="stylesheet" type="text/css" />
 <script language="JavaScript" type="text/javascript" src="../../../configuration/js/Prototype.js"></script>
<script language="JavaScript" type="text/javascript" src="../../../configuration/js/Public.js"></script>
<script src="../../../editor/fckeditor.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript">

function ReturnValue()
{
       //自定义内容
        var oEditor = FCKeditorAPI.GetInstance("fckLabelContent");//读fck内容
        var mystyle = oEditor.GetXHTML(true);
	
	var cnm ="[YX:unLoop,YX:LableType=StoreSearch,YX:Option=StoreSearchForm]"+mystyle+"[/YX:unLoop]";
	 
    parent.getValue(cnm);
	 CloseDiv();

}

function getValue(value)
{
    if(value!="") 
    {
        var oEditor = FCKeditorAPI.GetInstance("fckLabelContent");
        if (oEditor.EditMode==FCK_EDITMODE_WYSIWYG)
        {
           oEditor.InsertHtml(value);
           
        }
        
        else
        {
        return false;
        }
    }
}
function CloseDiv()
{
    parent.document.getElementById("LabelDivid").style.display="none";
}

</script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table class="table_label_parameter" cellpadding="1" cellspacing="1" style="width: 99%; margin-top:5px">
          
            <tr>
                <td>
                    搜索条件</td>
                <td>
                  <asp:DropDownList ID="dd_Condtion" runat="server" Height="25px" Width="151px" 
                        onchange="javascript:getValue(this.value);">
                        <asp:ListItem Value="">--请选择搜索条件--</asp:ListItem>
                        <asp:ListItem Value="[#StoreKey]">店铺关键字</asp:ListItem>
                        <asp:ListItem Value="[#StoreType]">店铺类型</asp:ListItem>
                        <asp:ListItem Value="[#StoreHost]">店铺主人</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td>
                    操作方式</td>
                <td>
                    <asp:DropDownList ID="ddl_Option" runat="server" Height="25px" Width="142px"  onchange="javascript:getValue(this.value);" >
                     <asp:ListItem Value="">--请选择操作方式--</asp:ListItem>
                        <asp:ListItem Value="[#SearchButton]">搜索按钮</asp:ListItem>
                        <asp:ListItem Value="[#SearchButtonReste]">重置按钮</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                
                <td colspan="4">
                    <FCKeditorV2:FCKeditor ID="fckLabelContent" runat="server"  BasePath="~/controls/fckeditor/"  Height="200px">
                    </FCKeditorV2:FCKeditor>
                     </td>
            </tr>
            
            <tr>
                <td colspan="4" align="center" style="text-align:center">
                   <input id="bt_Exc" type="button" value="提交" onclick="ReturnValue()" />
                    &nbsp;<input class="form" type="button" value=" 关 闭 "  onclick="javascript:CloseDiv();" /></td>
            </tr>
            </table>
    </div>
    </form>
</body>
</html>